<?php

return [
    //'<module:(v)\d+>/<controller:\w+>/search' => '<module>/<controller>/search',
    //'<controller:\w+>/<id:\d+>/<action:(add|edit|update|delete)>' => '<controller>/<action>',

    // get edit
    'GET <module:(v)\d+>/<controller:.*>/<action:(edit|show).*>/<id:\d+>' => '<module>/<controller>/<action>',
    'GET <controller:.*>/<action:(edit|show).*>/<id:\d+>' => '<controller>/<action>',

    // get
    'GET <module:(v)\d+>/<controller:.*>/<action:.*>' => '<module>/<controller>/<action>',
    'GET <controller:.*>/<action:.*>' => '<controller>/<action>',
    'GET <controller:.*>' => '<controller>',

    // post
    'POST <module:(v)\d+>/<controller:.*>/<action:(create).*>' => '<module>/<controller>/<action>',
    'POST <controller:.*>/<action:(create).*>' => '<controller>/<action>',

    // put
    'PUT <module:(v)\d+>/<controller:.*>/<action:(update).*>/<id:\d+>' => '<module>/<controller>/<action>',
    'PUT <controller:.*>/<action:(update).*>/<id:\d+>' => '<controller>/<action>',

    // delete
    'DELETE <module:(v)\d+>/<controller:.*>/<action:(delete).*>/<id:\d+>' => '<module>/<controller>/<action>',
    'DELETE <controller:.*>/<action:(delete).*>/<id:\d+>' => '<controller>/<action>',

    // options
    'OPTIONS <module:(v)\d+>/<controller:.*>/<action:.*>' => 'login/check',
    'OPTIONS <controller:.*>/<action:.*>' => 'login/check',
    'OPTIONS <controller:.*>' => 'login/check',
];
